/**
 * 
 */
package com.csc.bankingsystem.core.service;

import java.util.List;

import com.csc.bankingsystem.core.entity.AccountInfo;

/**
 * Define service operation of AccountInfo
 * 
 * @author angelkid
 *
 */
public interface AccountInfoService {

	AccountInfo find(long id);

	List<AccountInfo> findAll();

	Long countAll();

//	void saveOrUpdate(AccountInfo accountInfo);

	Long save(AccountInfo accountInfo);

	void update(AccountInfo accountInfo);

	void delete(AccountInfo accountInfo);
	
	List<AccountInfo> findAllByUserInfoId(long id);
	
	AccountInfo findByAccountNumber(String number);
}
